import { Locale } from "vant";
import zhCN from "vant/lib/locale/lang/zh-CN";
import jaJP from "vant/lib/locale/lang/ja-JP";
import enUs from "vant/lib/locale/lang/en-US";
import zhTw from "vant/lib/locale/lang/zh-TW";
import deDe from "vant/lib/locale/lang/de-DE";
import esES from "vant/lib/locale/lang/es-ES";
import trTR from "vant/lib/locale/lang/tr-TR";
// import frFR from 'vant/lib/locale/lang/fr-FR';

import roRO from "../../public/lang/ro_RO";
import slSI from "../../public/lang/sl_SI";
import urPK from "../../public/lang/ur_PK";

import ruRU from "../../public/lang/ruRU";
import frFR from "../../public/lang/frFR";
import arAE from "../../public/lang/arAE";
import koKR from "../../public/lang/koKR";

import it_IT from "../../public/lang/itIT";
import pt_PT from "../../public/lang/ptPT";
import vn_VN from "../../public/lang/vnVN";
import in_ID from "../../public/lang/inID";
import fa_IR from "../../public/lang/fa_IR";
import el_GR from "../../public/lang/elGR";
import nl_NL from "../../public/lang/nlNL";
import sl_SL from "../../public/lang/slSL";
import mk_MK from "../../public/lang/mk_MK";
import hu_HU from "../../public/lang/hu_HU";

export default function locales(a) {
  if (a == "sl_SL") {
    Locale.use("sl_SL", sl_SL);
  }
  if (a == "fa_IR") {
    Locale.use("fa_IR", fa_IR);
  }
  if (a == "el_GR") {
    Locale.use("el_GR", el_GR);
  }
  if (a == "nl_NL") {
    Locale.use("nl_NL", nl_NL);
  }
  if (a == "vn_VN") {
    Locale.use("vn_VN", vn_VN);
  }
  if (a == "in_ID") {
    Locale.use("in_ID", in_ID);
  }
  if (a == "ja_JP") {
    Locale.use("ja_JP", jaJP);
  }
  if (a == "it_IT") {
    Locale.use("it_IT", it_IT);
  }
  if (a == "pt_PT") {
    Locale.use("pt_PT", pt_PT);
  }
  if (a == "tr_TR") {
    Locale.use("tr_TR", trTR);
  }
  if (a == "es_ES") {
    Locale.use("es_ES", esES);
  }
  if (a == "ko_KR") {
    Locale.use("ko_KR", koKR);
  }
  if (a == "zh_CN") {
    Locale.use("zh_CN", zhCN);
  }
  if (a == "ar_AE") {
    Locale.use("ar_AE", arAE);
  }
  if (a == "de_DE") {
    Locale.use("de_DE", deDe);
  }
  if (a == "fr_FR") {
    Locale.use("fr_FR", frFR);
  }
  if (a == "ru_RU") {
    Locale.use("ru_RU", ruRU);
  }
  if (a == "en_US") {
    Locale.use("en_US", enUs);
  }
  if (a == "zh_TW") {
    Locale.use("zh_TW", zhTw);
  }
  if (a == "ro_RO") {
    Locale.use("ro_RO", roRO);
  }
  if (a == "sl_SI") {
    Locale.use("sl_SI", slSI);
  }
  if (a == "ur_PK") {
    Locale.use("ur_PK", urPK);
  }
  if (a == "mk_MK") {
    Locale.use("mk_MK", mk_MK);
  }
  if (a == "hu_HU") {
    Locale.use("hu_HU", hu_HU);
  }
}
